package com.cqie.hospitalescort.DTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

@Data
public class WelfareShopDTO {

    private Long id;

    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空！")
    private String name;

    @ApiModelProperty("兑换积分价格")
    @Positive(message = "必须是正整数")
    private Long redeemPrice;

    @ApiModelProperty("描述")
    @NotBlank(message = "商品名称不能为空！")
    private String description;

    @ApiModelProperty("剩余数量")
    private Integer count;
}
